package cn.edu.cdu.health.mapper;

import cn.edu.cdu.health.entity.Appointment;
import cn.edu.cdu.health.entity.AppointmentPageDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AppointmentMapper extends BaseMapper<Appointment> {
    // 分页查询预约
    Page<Appointment> pageQuery(Page<Appointment> page, @Param("dto") AppointmentPageDto dto);
    // 查询单个预约
    Appointment getById(Long id);
    // 更新预约状态
    int updateStatus(@Param("id") Long id, @Param("status") Integer status);
}
